/**
 * 定义ra中面板 ad
 * name属性没有指定
 */
Ext.define('Risk.view.ru.CtAndRu', {
    extend: 'Ext.form.FieldSet',
    alias: 'widget.ctandru',
    title: '变压因子【Ct】和缩减因子【Ru】',
    layout:  {
        type: 'table',
        // The total column count must be specified here
        columns: 2
        
    },
    width:'100%',
    initComponent: function() {
      //初始化Window中的内容
    	this.items = [
    	              {
    	            	  xtype:'fieldcontainer',
    	            	  layout:'vbox',
    	            	  items:[
		    	            	 {
		    		                xtype:'combo',
		    		                forceSelection :true,
		    		                displayField: 'name',
		   	                	    valueField: 'value',
		   	                	    store:'ru.CtStore',
		    		                fieldLabel :'变压因子',
		    		                name:'ct'
		    	            	 },
		    	            	 {
		    	            		 readOnly : true,
		    	            		 xtype:'textfield',
		    	            		 itemId:'ct',
		    	            		 vtype:'number',
		    	            		 fieldLabel: '变压器因子【Ct】',
		    	            		 style:'background:none; border-right: 0px solid;border-top: 0px solid;border-left: 0px solid;border-bottom: #000000 1px solid;',
		    	     	        	 fieldStyle:'background-color: #DDDDDD;color:red; background-image: none;',
		    	            		 hideTrigger:true
		    	            	 }
    	            	     ]
    	              },
    	              {
    	            	  margin:'0 0 0 30',
    	            	  xtype:'fieldcontainer',
    	            	  layout:'vbox',
    	            	  items:[
		    	            	 {//RuStore
		    		                xtype:'combo',
		    		                displayField: 'name',
		    		                forceSelection :true,
		   	                	    valueField: 'value',
		   	                	    store:'ru.RuStore',
		   	                	    minWidth :370,
		   	                	    name:'ru',
		    		                fieldLabel :'缩减因子'
		    	            	 },
		    	            	 {
		    	            		 readOnly : true,
		    	            		 itemId:'ct',
		    	            		 xtype:'textfield',
		    	            		 fieldLabel: '缩减因子【ru】',
		    	            		 vtype:'number',
		    	            		 style:'background:none; border-right: 0px solid;border-top: 0px solid;border-left: 0px solid;border-bottom: #000000 1px solid;',
		    	     	        	fieldStyle:'background-color: #DDDDDD;color:red; background-image: none;'
		    	            	 }
    	            	     ]
    	              }
        ];
        this.callParent(arguments);
        
    }
    
});